package com.yanqu.road.server.cmd.skinvolume;

import com.yanqu.road.server.cmd.base.AbstractCommand;
import com.yanqu.road.server.command.Cmd;
import com.yanqu.road.server.gameplayer.GamePlayer;
import com.yanqu.road.server.gameplayer.module.player.SkinVolumeModule;
import com.yanqu.road.message.YanQuMessage;
import com.yanqu.road.server.protocol.GameProtocol;


/**
 * @author ：zfr
 * @date ：2021/4/27 18:50
 */
@Cmd(code = GameProtocol.S_SKIN_VOLUME_SYNC_USER_DATA, desc = "霓裳卷同步玩家数据")
public class SkinVolumeSyncUserDataCmd extends AbstractCommand {
    @Override
    public boolean parseData(YanQuMessage packet) throws Exception {
        return true;
    }

    @Override
    public void execute(GamePlayer player, YanQuMessage packet) throws Exception {
        player.getModule(SkinVolumeModule.class).syncUserData();
    }

    @Override
    public void sendData(GamePlayer player) {

    }
}
